package pokerSaloon;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import pokerSaloon.exception.MaxNbPartieException;
import pokerSaloon.exception.PartieExistanteException;
import pokerSaloon.model.User;


/**
 *
 * @author Administrateur
 */
public interface InterPokerSaloon extends Remote {

    public boolean connecter(User user, String pseudo) throws RemoteException;
    public void deconnecter (String pseudo) throws RemoteException;
    public InterPartie creerPartie(String nom,int nbMaxJoueurs, User user) throws RemoteException, PartieExistanteException, MaxNbPartieException;
    public void supprimePartie(String nom) throws RemoteException;
    public ArrayList<String> getPartie() throws RemoteException;
}
